import { IsNumber, IsOptional, IsString, IsArray } from 'class-validator';

export class CreateRoleDto {
  @IsString()
  roleName: string;

  @IsOptional()
  @IsNumber()
  sort: number;

  @IsString()
  status: string;

  @IsOptional()
  @IsArray()
  menuIds: number[];
}
